package com.nulldev.util.networking.npacket4.extensions.debugging;

import java.io.IOException;
import java.io.InputStream;

import com.nulldev.util.networking.npacket4.extensions.PacketExtension;
import com.nulldev.util.networking.npacket4.extensions.PacketExtensions;

public class TestPacketExtension implements PacketExtension {
	private static final long serialVersionUID = -3573583343322829833L;

	@Override
	public int extensionID() {
		return PacketExtensions.PacketExtensionID.EXT_TEST;
	}

	@Override
	public byte[] extensionData() {
		return new byte[0];
	}

	@Override
	public byte[] processData(byte[] data) {
		return data;
	}

	@Override
	public TestPacketExtension readExtensionData(InputStream dis) throws IOException {
		return this;
	}

}
